Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GL] OglSceneFrame: fix background #5224

Merged
merged 2 commits into from
Jan 22, 2025

Conversation

fredroy
Copy link
Contributor

@fredroy fredroy commented Jan 16, 2025

Problem:

Screenshot 2025-01-16 at 09 25 53

The (scissored) viewport of the oglsceneframe clears its backbuffer so if a texture has been set in the background (typically by the GUI) it does produce a solid background behind ; which was weird to me.

This PR fixes it by disabling the clearing of the backbuffer.

Screenshot 2025-01-16 at 09 48 45

But I dont know if it was intended at the creation of this component. So I add a Data if one wants the legacy behavior (but the legacy behavior is unset by default)


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@fredroy fredroy added pr: fix Fix a bug pr: status to review To notify reviewers to review this pull-request labels Jan 16, 2025
@hugtalbot
Copy link
Contributor

Not sure about keeping the old behavior
Else 👍

Copy link
Contributor

@alxbilger alxbilger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remember correctly, I am the creator of this component, and I am in favor of removing the solid background Data.

@fredroy fredroy force-pushed the background_sceneframe branch from 0c3f442 to d2cf117 Compare January 17, 2025 00:43
@bakpaul bakpaul added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Jan 22, 2025
@epernod epernod added the pr: fast merge Minor change that can be merged without waiting for the 7 review days label Jan 22, 2025
@epernod epernod force-pushed the background_sceneframe branch from d2cf117 to f27189d Compare January 22, 2025 23:06
@epernod epernod merged commit 4fa6c5f into sofa-framework:master Jan 22, 2025
8 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: fast merge Minor change that can be merged without waiting for the 7 review days pr: fix Fix a bug pr: status ready Approved a pull-request, ready to be squashed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants